import axios from '@/libs/request.js'
import config from '@/config/index.js'
import qs from 'qs'

export const login22 = () => {
  // const params = qs.stringify(config.authInfo.params)
  return axios.request({
    url: 'http://58.49.74.231:118/api/monitor/AliCloudSMS/GetToken',
    method: 'post',
    // data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export const login = (params) => {
  return axios.request({
    url: config.authInfo.url,
    method: 'post',
    data: qs.stringify(params),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
